/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models.beans;

import models.dao.VehiculoDao;
import models.entity.Vehiculo;

/**
 *
 * @author hmardones
 */
public class ReservaBean {
    private VehiculoDao vehiculoDao = new VehiculoDao();
    private String patente = "";
    private Vehiculo vehiculo = null;

    public String getPatente() {
        return patente;
    }

    public void setPatente(String patente) {
        this.patente = patente;
    }

    public Vehiculo getVehiculo() {
        return vehiculo;
    }

    public void setVehiculo(Vehiculo vehiculo) {
        this.vehiculo = vehiculo;
    }
    
    public Vehiculo obtenerVehivuloPorPatente(){
        return vehiculoDao.findById(patente);
    }
    
}
